import { request } from '../../plugin/request'

// 左侧菜单
export function classifyData () {
  return request({
    url: '/home/category/menu',
    method: 'get'
  })
}

// 产品分类右侧商品
export function classifyGoods (cid = '') {
  return request({
    url: '/home/category/show/',
    method: 'get',
    params: {
      cid: cid
    }
  })
}

// 商品参数接口
export function goodsDetails (gid = '') {
  return request({
    url: '/home/goods/info',
    method: 'get',
    params: {
      type: 'details',
      gid
    }
  })
}

// 商品属性
export function goodsAttrs (gid = '') {
  return request({
    url: '/home/goods/info',
    method: 'get',
    params: {
      type: 'spec',
      gid
    }
  })
}







